﻿namespace RStudio.Elevator
{
    /// <summary>
    /// 数据|楼层信息
    /// </summary>
    /// <remarks>
    /// 定义你想要抵达的高度，以及该楼层允许的停留时间
    /// </remarks>
    public class DataFloor
    {
        /// <summary>
        /// 楼层编号
        /// </summary>
        public int FloorNo { get; set; }

        /// <summary>
        /// 垂直高度
        /// </summary>
        public float FloorVertical { get; set; }

        /// <summary>
        /// 楼层等待时间
        /// </summary>
        public float WaitFloorTime { get; set; }


        public DataFloor(int floorNo, float floorVertical)
        {
            this.FloorNo = floorNo;
            this.FloorVertical = floorVertical;
            this.WaitFloorTime = 3;
        }

        public DataFloor(int floorNo, float floorVertical, float waitFloorTime)
        {
            this.FloorNo = floorNo;
            this.FloorVertical = floorVertical;
            this.WaitFloorTime = waitFloorTime;
        }
    }
}
